package bean;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data//get set string equals等
@AllArgsConstructor//全参构造器
@NoArgsConstructor//无参构造器
public class GoodsInfo {
    private Integer goodsId;
    private String goodsName;
    private Double goodsPrice;
    private Integer goodsUnm;
    public boolean equals(Object obj){
        GoodsInfo gi = (GoodsInfo) obj;
        return this.getGoodsId()==gi.getGoodsId();
    }
}
